package ssm.com.jy.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ssm.com.jy.dao.mapper.CoursesBeanMapper;
import ssm.com.jy.entity.CoursePartBean;
import ssm.com.jy.entity.CoursesBean;
import ssm.com.jy.service.CourseService;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {

    @Autowired
    private CoursesBeanMapper mCoursesBeanMapper;

    @Override
    public List<CoursesBean> selectAll() {
        return mCoursesBeanMapper.selectAll();
    }

    @Override
    public List<CoursePartBean> queryByType() {
        return mCoursesBeanMapper.queryByType();
    }
}
